package com.shangyueshang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shangyueshang.model.SysDept;
import com.shangyueshang.response.HttpResult;

import java.util.List;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2022/1/5 18:42
 * @version: v1.0.0
 */
public interface SysDeptService extends IService<SysDept> {

    /**
     * 保存更新
     *
     * @param entity
     * @return
     */
    HttpResult saveUpdate(SysDept entity);

    /**
     * 查询机构树
     *
     * @return
     */
    List<SysDept> findTree();

}
